using PLCLib.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PLCLib.Interface
{

    /// <summary>
    /// PLC返回结果
    /// </summary>
    public interface IPlcResult
    {
        Command Command { get; set; }
        object Content { get; set; }
        bool Success { get; set; }
        string Message { get; set; }
        Exception Exception { get; set; }
        byte[] ReceiveBuffer { get; set; }
    }

    /// <summary>
    /// PLC返回结果的泛型接口
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IPlcResult<T>
    {
        Command Command { get; set; }
        T Content { get; }
        bool Success { get; set; }
        string Message { get; set; }
        Exception Exception { get; set; }
        byte[] ReceiveBuffer { get; set; }
    }
}
